package com.shushan.home.bean;

import com.android.net.bean.NetBaseBean;
import com.shushan.base.Constants;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: ScoreAchieveBean
 * @Desciption: 成绩达标bean
 * @author: yichaohua
 * @date: 2018-04-24
 */
public class ScoreAchieveBean extends NetBaseBean {

    public int chineseAchieve;
    public int mathAchieve;
    public int englishAchieve;

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        chineseAchieve = jsonObject.optInt(Constants.SUBJECT_CHINESE_ID + "",0);
        mathAchieve = jsonObject.optInt(Constants.SUBJECT_MACH_ID + "",0);
        englishAchieve = jsonObject.optInt(Constants.SUBJECT_ENGLISH_ID + "",0);
    }
}
